package com.jdb.loan.provider.service;

import com.guns21.result.domain.PageResult;
import com.guns21.result.domain.Result;
import com.jdb.loan.api.dto.LoanCategoryDTO;
import com.jdb.loan.api.dto.LoanDTO;
import com.jdb.loan.api.query.AmountCondition;
import com.jdb.loan.api.query.LoanQuery;

import java.util.Date;
import java.util.List;

public interface LoanQueryService {

    Result<LoanDTO> get(String id);

    PageResult<LoanDTO> list(Date time, boolean forward, int count, AmountCondition amount, String categoryId);

    PageResult<LoanDTO> list(List<String> ids);

    PageResult<LoanDTO> listByPage(LoanQuery loanQuery);

    Result<LoanCategoryDTO> getLoanCategory(String id);

    PageResult<LoanCategoryDTO> listCategories();

}
